<html lang="ro">
    <head>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
        <title>SofTAB - CMS</title>
        <link rel="stylesheet" type="text/css" href="lib/ext/resources/css/ext-all.css" />
        <link rel="stylesheet" type="text/css" href="css/application.css">
        <!-- Ext Base JS GO -->
        <script type="text/javascript" src="../lib/ext/adapter/ext/ext-base.js">
        </script>
        <script type="text/javascript" src="../lib/ext/ext-all-debug.js">
        </script>
        <script type="text/javascript" src="../lib/ext/lang/ext-lang-en.js">
        </script>
        <!-- Ext Base JS NO -->
        <script type="text/javascript" src="../client/CustomClasses/Entity.js">
        </script>
        <script type="text/javascript" src="../client/CustomClasses/EntityField.js">
        </script>
    </head>
    <body>
        <script type="text/javascript">
            Ext.onReady(function(){
                var test = Softab.Entity;
                test._id = "123-124";
                test._name = "TestName";
                test._label = "TestLabel";
                test._pluralLabel = "TestPluralLabel";
                
                var testField1 = new Softab.EntityField();
                var testField2 = new Softab.EntityField();
                //testField1._id = "1111";
                testField1._name = "TestFieldName0";
                testField1._formLocation = 1;
                testField1._formLocation = 1;
                test._fields.add(testField1._id, testField1);
                
                
                //testField2._id = "2222";
                testField2._name = "TestFieldName1";
                testField2._formLocation = 1;
                testField2._formLocation = 1;
                test._fields.add(testField2._id, testField2);
                
                var fetch = test._fields.get(0);
                fetch.AlterName();
                test._fields.each(blah, this);
				
            });
			function blah(itemData, itemIndex, itemLength){
				alert(itemData._name);
			}
        </script>
    </body>
</html>
